package cn.minsh.lims.eoms.modules.app.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("拒绝")
public class RejectOrderReq {
    @ApiModelProperty("工单id")
    @NotNull(message = "工单id不能为空")
    private Long id ;
    @ApiModelProperty("拒绝原因")
    @NotBlank(message = "拒绝原因不能为空")
    @Length(max = 120,message = "拒绝原因长度不能超过120个字符")
    private String reason ;
}
